# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=libvterm
pkgver=0.1.20190920
_gitref=fcbccd3c79bfa811800fea24db3a77384941cb70
pkgrel=0
pkgdesc="Abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator"
url="http://www.leonerd.org.uk/code/libvterm/"
arch="all"
license="MIT"
makedepends="libtool perl"
subpackages="$pkgname-dev"
source="$pkgname-$_gitref.tar.gz::https://github.com/neovim/libvterm/archive/$_gitref.tar.gz"
builddir="$srcdir/$pkgname-$_gitref"

build() {
	make PREFIX=/usr
}

check() {
	make test
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir/" install
	rm -f "$pkgdir"/usr/lib/*.a
}

sha512sums="230cee033cb0242a910c3c78b8744105648abec194477962c7903f5f0ee74f49264b0ea516d0ddd83f047cba426158c40e0472880f49e9e037dd0712dc8a9bee  libvterm-fcbccd3c79bfa811800fea24db3a77384941cb70.tar.gz"
